/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package centralehotel.metier.backoffice;

import centralehotel.dao.interfaces.ReservationDAOLocal;
import centralehotel.modele.FicheHotel;
import centralehotel.modele.Reservation;
import java.util.Collection;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Mathieu
 */
@Stateless
public class ReservationGestMetier implements ReservationMetierRemote, ReservationMetierLocal {
    @EJB
    private ReservationDAOLocal reservationDAO;
    
    
    public Collection<Reservation> getAllReservationByFicheHotel(FicheHotel hotel){
        return reservationDAO.findReservationByHotel(hotel);
    }
}
